﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Libs.HR;

public partial class Pages_Hr_Education_Add : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        AppUtils.CheckLogin();
        Title = Title + " - Thêm mới trình độ học vấn";
    }

    protected void btAdd_Click(object sender, EventArgs e)
    {
        var _Education = new Education();
        _Education.Name = txtName.Text.Trim();
        _Education.Order = Convert.ToInt32(txtOrder.Text);
        _Education.Add();

        Response.Redirect(Constant.ADMIN_PATH + Resources.Url.EducationList);
    }

    protected void btCancel_Click(object sender, EventArgs e)
    {
        Response.Redirect(Constant.ADMIN_PATH + Resources.Url.EducationList);
    }
}
